class QuestionItem implements java.lang.Comparable{

	Question question
	String quesItemId //A,B,C,D,E,F....
	String content

	static mapping = {
		table 'VOTING_QUESTION_ITEM'
	}

	static belongsTo = Question

    static constraints = {
		quesItemId(blank:false, maxSize: 6)
		content(blank:false, maxSize: 5000)
    }

	static optionals = {
	}

	String toString() {
		"${this.quesItemId} - ${this.content}"
	}

	int compareTo(Object qi){
		return this.quesItemId.compareTo(qi.quesItemId)
	}
}
